package com.haizhi.crm.tag.service.impl;

import com.haizhi.crm.tag.manager.TagManager;
import com.haizhi.crm.tag.model.TagPagReq;
import com.haizhi.crm.tag.model.TagPageResp;
import com.haizhi.crm.tag.model.TagQo;
import com.haizhi.crm.tag.model.TagResp;
import com.haizhi.crm.tag.service.TagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by chengmo on 2018/5/16.
 */
@Service
public class TagServiceImpl implements TagService {

    @Autowired
    private TagManager tagManager;

    @Override
    public TagResp findByObjectKeys(TagQo request) {
        return tagManager.findByObjectKeys(request);
    }

    @Override
    public TagPageResp findPage(TagPagReq request) {
        return tagManager.findPage(request);
    }

    @Override
    public TagResp get(TagQo request) {
        return tagManager.get(request);
    }

    @Override
    public TagResp save(TagQo request) {
        return tagManager.save(request);
    }

    @Override
    public TagResp update(TagQo request) {
        return tagManager.update(request);
    }

    @Override
    public TagResp delete(TagQo request) {
        return tagManager.delete(request);
    }
}
